<?php 
	require_once("models/config.php");
?>

<?php if(!isUserLoggedIn()) {
	header ("location: login.php");
	die();
}

	global $loggedInUser;
	$isAdmin = $loggedInUser->isAdministrator();

	if ($isAdmin) {
		header ("location: users.php");
	} else {
		header ("location: debugging.report.php");
	}

	die();
?>
